package com.xique.park.controller.client.web.api;

import com.alibaba.fastjson.JSONObject;
import com.github.lianjiatech.retrofit.spring.boot.annotation.RetrofitClient;
import retrofit2.http.GET;
import retrofit2.http.QueryMap;

import java.util.Map;

/**
 * @author shd
 * @create 2021/12/1 16:17
 */
@RetrofitClient(baseUrl = "${tx.location.api.url}")
public interface ITxLocationApi {

    /**
     * 根据ip获取地址信息
     * @author shd
     * @date 2021/12/1 16:20
     * @param map
     * @return com.xique.common.core.utils.json.JSONObject
     */
    @GET("v1/ip")
    JSONObject getAddressByIp(@QueryMap Map<String, Object> map);
}
